<template>
  <ContentWrap :title="title">
    <empView :id="empId" @load="loadEmp" />
  </ContentWrap>
</template>
<script>
import { empView } from '@/components/emp/'
export default {
  components: {
    empView
  },
  data() {
    return {
      empId: null,
      title: null
    }
  },
  mounted() {
    this.empId = this.$route.params.id
  },
  methods: {
    loadEmp(emp) {
      this.title = '查看员工(' + emp.EmpName + ')资料'
    }
  }
}
</script>
